<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  try {
    eval('new Type')
  } catch (error) {
    console.log(error); // ReferenceError: Type is not defined
  }
  try {
    eval('notFindFunc("xxxxxx")')
  } catch (error) {
    console.log(error); // ReferenceError: notFindFunc is not defined
  }
  try {
    eval('null.attr()')
  } catch (error) {
    console.log(error); // TypeError: Cannot read properties of null (reading 'attr')
  }
  try {
    eval('const!')
  } catch (error) {
    console.log(error); // SyntaxError: Unexpected token '!'
  }
  try {
    eval('new ArrayBuffer(100**100**100)')
  } catch (error) {
    console.log(error); // RangeError: Invalid array buffer length
    console.log(error instanceof RangeError);      // true
    console.log(error.message);                    // "Invalid array buffer length"
    console.log(error.name);                       // "RangeError"
    console.log(error.fileName);                   // undefined
    console.log(error.lineNumber);                 // undefined
    console.log(error.columnNumber);               // undefined
    console.log(error.stack);                      // RangeError: Invalid array buffer length
  }
  try {
    eval("decodeURIComponent('%')")
  } catch (error) {
    console.log(error); // URIError: URI malformed
  }
</script>
</body>
</html>